﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GeoSpatial {
    public class Point {
        private double _x;
        public double X {
            get { return _x; }
            set {
                if (value < 0 || value > 180)
                    throw new ArgumentException(Strings.ValueMustBeBetween0And180Inclusive);
                _x = value;
            }
        }

        private double _y;
        public double Y {
            get { return _y; }
            set {
                if (value < 0 || value > 180)
                    throw new ArgumentException(Strings.ValueMustBeBetween0And180Inclusive);
                _y = value;
            }
        }
      
    }
}
